package robottest;

import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

public class RobotTest {
	private static Robot r;
	public static void main ( String[] args ) throws AWTException, InterruptedException {
		r = new Robot();
		
		Thread.sleep( 2000 );
		r.keyPress( KeyEvent.VK_CONTROL );
		for (int i = 0; i < 1000; i++) {
//			r.keyPress( KeyEvent.VK_V );
//			r.keyRelease( KeyEvent.VK_V );
////			Thread.sleep( 1 );
//			r.keyPress( KeyEvent.VK_ENTER );
//			r.keyRelease( KeyEvent.VK_ENTER );
////			Thread.sleep( 1 );
			r.mouseMove( 700, 482 );
			r.mousePress( InputEvent.BUTTON1_MASK );
			Thread.sleep( 1 );
			r.mouseMove( 710, 482 );
			Thread.sleep( 1 );
			r.mouseMove( 744, 482 );
			r.mouseRelease( InputEvent.BUTTON1_MASK );
			Thread.sleep( 10 );
			
		}
		r.keyRelease( KeyEvent.VK_CONTROL );
	}
}

